import os
import cgi
from google.appengine.ext import webapp
from google.appengine.ext.webapp import template
from google.appengine.ext.webapp.util import run_wsgi_app

class Index( webapp.RequestHandler ) :
	def get( self ) :
		path = os.path.join( os.path.dirname( __file__ ), 'tpl/index.html' )
		self.response.out.write( template.render( path, {} ))

wsgiapp = webapp.WSGIApplication( [
	('/',	Index)],
	debug = True )

def main() :
	run_wsgi_app( wsgiapp )

if __name__ == '__main__' :
	main()
